// 导入自己需要的组件
import {
    Select,
    Button,
    Option,
    OptionGroup,
    Radio,
    RadioButton,
    RadioGroup,
    Checkbox,
    CheckboxButton,
    CheckboxGroup,
    Input,
    Tree,
    Dialog,
    Row,
    Col,
    Message,
    Notification,
    Table,
    TableColumn,
    Pagination,
    Collapse,
    CollapseItem,
    Empty,
    Image,
    Drawer,
    Divider,
    Dropdown,
    DropdownMenu,
    DropdownItem,
    Tabs,
    Tag,
    Upload,
    Form,
    FormItem
} from 'element-ui'

import CollapseTransition from 'element-ui/lib/transitions/collapse-transition';

const element = {
    install: function (Vue) {
        Vue.use(Form)
        Vue.use(FormItem)
        Vue.use(Upload)
        Vue.use(Dropdown)
        Vue.use(DropdownMenu)
        Vue.use(DropdownItem)
        Vue.use(Tabs)
        Vue.use(Tag)
        Vue.use(Radio)
        Vue.use(RadioButton)
        Vue.use(RadioGroup)
        Vue.use(Checkbox)
        Vue.use(CheckboxButton)
        Vue.use(CheckboxGroup)

        Vue.use(Select)
        Vue.use(Option)
        Vue.use(OptionGroup)
        Vue.use(Input)
        Vue.use(Tree)
        Vue.use(Dialog)
        Vue.use(Row)
        Vue.use(Col)
        Vue.use(Button)
        Vue.use(Table)
        Vue.use(TableColumn)
        Vue.use(Pagination)
        Vue.use(Collapse)
        Vue.use(CollapseItem)
        Vue.use(Empty)
        Vue.use(Image)
        Vue.use(Drawer)
        Vue.use(Divider)
        Vue.prototype.$message = Message;
        Vue.prototype.$notify = Notification;
        Vue.component(CollapseTransition.name, CollapseTransition)
    }
}
export default element
